// pc/07my/balanceList.js
var co = require('../../js/common.js')
var _this, app = getApp()
Page({
   data: {
      balanceList: []
   },

   onLoad: function (options) {
      _this = this
      this.getBalanceList()
   },

   getBalanceList: function () {
      var params = { unionid: app.aData.userInfo.unionid }
      co.getShareApi('finance/Fi/balanceList', params, function (res) {
         _this.setData({ balanceList: res.data })
         // _this.checkUpdateUserBalance()
      })
   },

   // checkUpdateUserBalance: function () {
   //    var list = this.data.balanceList
   //    if (list.length > 0) {
   //       var balane = list[0].personal_balance
   //       if (app.aData.userInfo.balance != balane) {
   //          co.modal('余额不对')
   //       }
   //    }
   // }
})